<?php

class setProfesiTable extends Doctrine_Table
{
    public function getProfesiList() {
        $q = Doctrine_Query::create()
                ->select('id, nama')
                ->from('setProfesi s');

        $q = $q->execute();

        $result = array();

        foreach($q as $r) {
            if($r->getNama() != 'Administrator') {
                $result[$r->getId()] = $r->getNama();
            }
        }

        return $result;
    }

}